$(function () {
    $("#express-list").bootstrapTable({
        url: "/admin/views/courier/list.do",//数据地址
        striped: true,//是否显示行的间隔
        pageNumber: 1,//初始化加载第几页
        pagination: true,//是否分页
        sidePagination: 'server',
        pageSize: 5,
        pageList: [5, 10, 20],
        showRefresh: true,
        queryParams: function (params) {
            return {
                offset: params.offset,
                pageNumber: params.limit
            };
        },
        columns: [
            {
                title: "编号",
                field: "id",
                sortable: false
            },
            {
                title: "姓名",
                field: "name",
                sortable: false
            },
            {
                title: "密码",
                field: "passwd",
                sortable: false
            },
            {
                title: "电话",
                field: "phone",
                sortable: false
            },
            {
                title: "身份证",
                field: "idNumber",
                sortable: false
            },
            {
                title: "派件数",
                field: "dispatches",
                sortable: false
            },
            {
                title: "注册时间",
                field: "regtime",
                sortable: false
            },
            {
                title: "上次登陆时间",
                field: "logintime",
                sortable: false
            },
            {
                title: "状态",
                field: "status",
                sortable: false
            },
            {
                title: "电子邮箱",
                field: "email",
                sortable: false
            },
            {
                title: "派送地区",
                field: "addr",
                sortable: false
            }
        ]
    });
});